#include "SpriteSafecap.h"
#include "CGlobal.h"
using namespace cocos2d;
SpriteSafecap::SpriteSafecap(void)
{
}

SpriteSafecap::~SpriteSafecap(void)
{
}

SpriteSafecap * SpriteSafecap::node( const std::string arrayPic[],int nNum,float fIntervalTime,bool bRepeat/*=true*/ )
{
	SpriteSafecap *pNode=new SpriteSafecap;
	if (pNode)
	{
		pNode->autorelease();
		if (pNode->init(arrayPic,nNum,fIntervalTime,bRepeat))
		{
			return pNode;
		}
	}
	return NULL;
}



bool SpriteSafecap::init( const std::string arrayPic[],int nNum,float fIntervalTime ,bool bRepeat/*=true*/ )
{
	if (!CAnimationSprite::init(arrayPic,nNum,fIntervalTime,bRepeat))
	{
		return false;
	}
	return true;
}